<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><ui:insert name="title">Default Title</ui:insert></title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>

    <h:body>




        <h:form>
            <p:growl id="growl" />

            <p:tabMenu activeIndex="1">  
                <p:menuitem value="Compte[#{loginController.findName()}]" url="index.xhtml" icon="ui-icon-mail-open"/>  
                <p:menuitem value="Acceuil" url="index.xhtml" icon="ui-icon-home" />  
                <p:menuitem value="Catégories" url="Categories.xhtml" icon="ui-icon-folder-collapsed"/>  
                <p:menuitem value="Déconnecter" url="index.xhtml" icon="ui-icon-power" />  
                <p:menuitem value="Rechercher"  url="#" icon="ui-icon-search"> 

                    <h:panelGrid columns="12" cellpadding="0">  
                        <h:outputLabel for="Rechercher" value="Rechercher:" style="font-weight:bold"/>  

                        <p:inputText id="categorieName" value="#{rechercheController.categorieName}" />  

                        <p:commandButton value="go" action="#{rechercheController.Search()}" update="growl"/>  

                    </h:panelGrid> 

                </p:menuitem>
            </p:tabMenu>  


        </h:form>  

    </h:body>

</html>